﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IRProject
{
    abstract class BaseStreamArray<T> where T : IConvertible//int,float等
    {
        protected int maxSize;//array 大小

        public BaseStreamArray(int size) {
            maxSize = size;
        }

        public int Count
        {
            get 
            {
                return maxSize;
            }
        }

        public abstract T this[int index] { get; set; }

        //public abstract T Get(int index);

        //public abstract void Set(int index, T value);

    }
}
